<?php
/**
* Wird benutzt, um Dateien einzubinden
*/

// FROM JOOMLA! 1.5
class JLoader
{
  function import( $path, $extended = false )
  {
    $file = dirname(__FILE__).DS."..".DS;
    if($extended) {
      $file.=$path;
    } else {
      $file.=str_replace(".", DS, $path).".php";
    }
    //echo $file;
    if(file_exists($file)) {
      include_once($file);
    } else {
      return false;
    }
    return true;
  }
}

/**
 * Intelligent file importer
 *
 * @access public
 * @param string $path A dot syntax path
 * @since 1.5
 */
function jimport( $path, $extended = false ) {
	return JLoader::import($path, $extended);
}
?>